//声明UI变量
var rootview=ui("$");
var layoutItem = ui("layoutItem");
var labelImg = ui("labelImg");
var labelName = ui("labelName");
var labelPrice = ui("labelPrice");
var labelCount = ui("labelCount");
//设置数据绑定的映射关系
rootview.setMapping({
	"layoutItem.tag":"orderItemVo"
});

rootview.on("dataRefreshed", function(){
	var datas = JSON.parse(layoutItem.tag);
	labelImg.source = datas.imgHandleDomain + datas.img;
	labelName.text = datas.name+' '+datas.productSpecName;
	labelPrice.text = "￥" + datas.price;
	labelCount.text = datas.quntity;
});